using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FacingCamera : MonoBehaviour
{
    List<Transform> children;
    // Start is called before the first frame update
    void Awake()
    {
        children = new List<Transform>();
        for(int i=0;i<transform.childCount;i++)
        {
            children.Add(transform.GetChild(i));
        }
        
    }

    // Update is called once per frame
    void FixedUpdate()
    {
        /*
        if(GameMgr.Get<ICameraManager>().Cam!=null)
        {
            transform.rotation = GameMgr.Get<ICameraManager>().Cam.transform.rotation;
            foreach (var c in children)
            {
                c.rotation = GameMgr.Get<ICameraManager>().Cam.transform.rotation;
            }
        }
        */
    }
}
